/**
 * Created with JetBrains WebStorm.
 * User: ab
 * Date: 14-7-9
 * Time: 下午4:38
 * To change this template use File | Settings | File Templates.
 */

requirejs.config({
    // 默认从js/lib加载所有的module ID
    baseUrl: 'js/app',
    paths: {
        require: "../lib/require",
        jquery: "../lib/jquery"
    } ,
    config: {
        'bar': {
            size: 'large'
        },
        'baz': {
            color: 'blue'
        }
    }
});


requirejs(['jquery', 'alertH'], function($, alertH, log) {
    $("h1").css("color", "red");
    alertH();
});
requirejs(['logAMD'], function(log) {
    log.ok();
});
requirejs(["bar"], function(bar){
    alert(bar.size);
});
